package com.study.model.pojo.PSIpojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the purchase_order database table.
 * 
 */
@Entity
@Table(name="purchase_order")
@NamedQuery(name="PurchaseOrder.findAll", query="SELECT p FROM PurchaseOrder p")
public class PurchaseOrder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String purorderid;

	private int buystate;

	private int financestate;

	private double needpay;

	private int paystate;

	private String purchaserid;

	private String purdrawerid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date purendtime;

	private int purgoodstate;

	@Temporal(TemporalType.TIMESTAMP)
	private Date puropendate;

	@Temporal(TemporalType.TIMESTAMP)
	private Date puropentime;

	private int purstate;

	private String remark;

	private int settletype;

	private String stateid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date statetime;

	private int suppid;

	private double totalprice;

	private int warehouseid;

	public PurchaseOrder() {
	}

	public String getPurorderid() {
		return this.purorderid;
	}

	public void setPurorderid(String purorderid) {
		this.purorderid = purorderid;
	}

	public int getBuystate() {
		return this.buystate;
	}

	public void setBuystate(int buystate) {
		this.buystate = buystate;
	}

	public int getFinancestate() {
		return this.financestate;
	}

	public void setFinancestate(int financestate) {
		this.financestate = financestate;
	}

	public double getNeedpay() {
		return this.needpay;
	}

	public void setNeedpay(double needpay) {
		this.needpay = needpay;
	}

	public int getPaystate() {
		return this.paystate;
	}

	public void setPaystate(int paystate) {
		this.paystate = paystate;
	}

	public String getPurchaserid() {
		return this.purchaserid;
	}

	public void setPurchaserid(String purchaserid) {
		this.purchaserid = purchaserid;
	}

	public String getPurdrawerid() {
		return this.purdrawerid;
	}

	public void setPurdrawerid(String purdrawerid) {
		this.purdrawerid = purdrawerid;
	}

	public Date getPurendtime() {
		return this.purendtime;
	}

	public void setPurendtime(Date purendtime) {
		this.purendtime = purendtime;
	}

	public int getPurgoodstate() {
		return this.purgoodstate;
	}

	public void setPurgoodstate(int purgoodstate) {
		this.purgoodstate = purgoodstate;
	}

	public Date getPuropendate() {
		return this.puropendate;
	}

	public void setPuropendate(Date puropendate) {
		this.puropendate = puropendate;
	}

	public Date getPuropentime() {
		return this.puropentime;
	}

	public void setPuropentime(Date puropentime) {
		this.puropentime = puropentime;
	}

	public int getPurstate() {
		return this.purstate;
	}

	public void setPurstate(int purstate) {
		this.purstate = purstate;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getSettletype() {
		return this.settletype;
	}

	public void setSettletype(int settletype) {
		this.settletype = settletype;
	}

	public String getStateid() {
		return this.stateid;
	}

	public void setStateid(String stateid) {
		this.stateid = stateid;
	}

	public Date getStatetime() {
		return this.statetime;
	}

	public void setStatetime(Date statetime) {
		this.statetime = statetime;
	}

	public int getSuppid() {
		return this.suppid;
	}

	public void setSuppid(int suppid) {
		this.suppid = suppid;
	}

	public double getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}

	public int getWarehouseid() {
		return this.warehouseid;
	}

	public void setWarehouseid(int warehouseid) {
		this.warehouseid = warehouseid;
	}

}